package com.t3;

/**
 * Created by xuyiwei on 2018/7/13.
 */
public class T3_17_1 {

    public static  void test(String t1,String t2){
        System.out.println("t1==t2:"+t1==t2);
        System.out.println("t1!=t2:"+t1!=t2);
        System.out.println("t1.equals(t2):"+t1.equals(t2));

    }
    public static void main(String[] args) {
        String s1 = "hello";
        String s2 = "hello";

        String s3=new String("hello");

        test(s1,s2);
        test(s2,s3);

    }
}
